<?php

use Illuminate\Database\Schema\Builder;
use Illuminate\Database\Schema\Blueprint;

return [
    'up' => function (Builder $schema) {
        $schema->create('wanecho_adslist', function (Blueprint $table) {
            $table->increments('id');
            $table->string('adpid');
            $table->string('platform');
            $table->string('provider');
            $table->string('trans_id');
            $table->string('sign');
            $table->integer('user_id');
            $table->string('extra');
            $table->tinyInteger('isreward')->default(0);
            $table->timestamps();
        });
    },
    'down' => function (Builder $schema) {
        $schema->dropIfExists('wanecho_adslist');
    }
];
